package com.gupao.jly521;

import com.gupao.jly521.strategy.PayState;
import com.gupao.jly521.strategy.PayType;
import com.gupao.jly521.strategy.entity.Order;

/**
 * @author Jly
 * @date 2018/8/24  14:44
 */
public class StrategyTest {


    public static void main(String[] args) {
        Order order = new Order("1","222.3");
        PayState payState = order.pay(PayType.ALIPAY);
        System.out.println(payState.getMsg());
        payState = order.pay(PayType.JDPAY);
        System.out.println(payState.getMsg());
    }
}
